<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.pictures.tiles.restAPI.contrib.override">

  <require>org.nuxeo.ecm.platform.pictures.tiles.restAPI.contrib</require>

  <extension point="restlets" target="org.nuxeo.ecm.platform.ui.web.restAPI.service.PluggableRestletService">

    <documentation>
     <![CDATA[
     GET /nuxeo/restAPI/getTiles/{repoId}/{docId}/{tileWidth}/{tileHeight}/{maxTiles}?fieldPath=(subPath)&x=(tileX)&y=(tileY)&format=(XML|JSON)
     ]]>
    </documentation>

    <restletPlugin class="org.nuxeo.ecm.platform.pictures.tiles.restlets.PictureTilesRestlets" enabled="true" name="getTiles" useSeam="false">
      <urlPatterns>
        <urlPattern>/getTiles/{repoId}/{docId}/{tileWidth}/{tileHeight}/{maxTiles}</urlPattern>
      </urlPatterns>
    </restletPlugin>
  </extension>

</component>
